<template>
  <div>
    <headerXX :name="title"></headerXX>
    <div class="pull-refresh">
      <div class="rich-text" v-dompurify-html="Newxx.noticeContent"></div>
    </div>
  </div>
</template>

<script>
import headerXX from "../components/title.vue";
import { getpersonalInformation } from "../common/RYXX";
import {
  getNewNotice2,
} from "@/api/realAssets/icsharedstation/home";
export default {
  components: { headerXX },
  data() {
    return {
      title: "新闻详情",
      Newxx: "",

    };
  },
  created() {},
  mounted() {
    let obj = {
      postId: JSON.parse(getpersonalInformation()).postId,
      noticeType: "2",
      id: this.$route.query.id,
    };
    getNewNotice2(obj).then((res) => {
      if (res.resultMessage == "SUCCESS" && res.resultCode == 1) {
        this.Newxx = res.data[0];
      } else {
        Toast.fail("网络错误");
        return;
      }
    });
  },
  methods: {},
};
</script>

<style lang="less" scoped>
@import "../static/css/index.less";
@import "../static/css/rich-text.css";
</style>
